cmake_minimum_required(VERSION 3.16)
project(test_prop_define)

enable_testing()
add_test(NAME mytest COMMAND echo "abc")

get_property(var1 TEST mytest PROPERTY mytest_prop DEFINED)
message(STATUS "mytest_prop is defined? = ${var1}")

define_property(TEST PROPERTY mytest_prop BRIEF_DOCS "test docs" FULL_DOCS "test full doc")
get_property(var2 TEST mytest PROPERTY mytest_prop DEFINED)
message(STATUS "mytest_prop is defined? = ${var2}")

define_property(TEST PROPERTY mytest_prop2 INHERITED BRIEF_DOCS "doc1" FULL_DOCS "doc2")
get_property(var3 TEST mytest PROPERTY mytest_prop2 DEFINED)
message(STATUS "mytest_prop2 is defined? = ${var3}")
